<?php
	define('CONFIG_FILE',true);
	include './config.php';
	
	define('DB_FILE',true);
	require_once '../Tool/DB/SqlDBManager.class.php';

	$ActivityRecordID = intval($_REQUEST['ActivityRecordID']);

	$sqlDBManager = new SqlDBManager();

	$sql = "DELETE FROM activityrecord WHERE ActivityRecordID=?";
	$parameters = array($ActivityRecordID);
	$res=$sqlDBManager->execute_dml($sql,$parameters);

	if ($res>0){
		echo json_encode(array('success'=>true));
	}else{
		echo json_encode(array('msg'=>'Remove activity record failed due to database error.'));
	}
?>